package com.sicnustray.service;

import com.sicnustray.controller.dto.UserDTO;
import com.sicnustray.entity.Menu;
import com.sicnustray.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yl
 * @since 2022-11-05
 */
public interface IUserService extends IService<User> {

    UserDTO login(UserDTO userDTO);
    User register(UserDTO userDTO);

    List<User> listUser();


    User getByUsername(String username);
    List<Menu> getRoleMenus(String role);
}
